﻿<controls:ChildWindow x:Class="OnlineGameClient.View.GameWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           >
    <controls:ChildWindow.Title>
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding CurrentGameRoom.GameInfo.GameName}"/>
            <TextBlock Text="{Binding CurrentGameRoom.GameState}" Margin="10,0,0,0"/>
        </StackPanel>
    </controls:ChildWindow.Title>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border Name="gameuicontainer" Child="{Binding CurrentGame.GameUI}" Background="Blue"/>
    </Grid>
</controls:ChildWindow>